import Vue from 'vue'
import VueRouter from 'vue-router'
import LoginView from '../views/LoginView.vue'
import IndexView from '../views/IndexView.vue'
// import HomeView from '../views/HomeView.vue'
import ElectronicFenceShow from '../views/mapshow/ElectronicFenceShow.vue'
import LandMarkManage from '../views/landmarkproducts/LandMarkManage.vue'
import MapboxDrew from '../views/mapshow/MapboxDrew.vue'
import Personal from '../views/usercenter/Personal.vue'



import axios from 'axios'
Vue.prototype.$axios = axios
Vue.use(VueRouter)

const routes = [
  {
    path:'/',
    redirect:'/login'
  },
  {
    path:'/login',
    component:LoginView
   },
   {
    path: '/index',
    component: IndexView,
    children:[  
      // {
      //   path:'home',
      //   component:HomeView
      // },
      {
        path:'electroni_ceence_show',
        component:ElectronicFenceShow
      },
      {
        path:'landMark_manage',
        component:LandMarkManage
      },
      {
        path:'mapboxdrew',
        component:MapboxDrew
      },
      {
        path:'personal',
        component:Personal
      }
      
    ]
  },
]

const router = new VueRouter({
  routes
})

export default router
